package com.keshe.cart.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.keshe.common.utils.PageUtils;
import com.keshe.common.utils.Query;

import com.keshe.cart.dao.UcouponDao;
import com.keshe.cart.entity.UcouponEntity;
import com.keshe.cart.service.UcouponService;


@Service("ucouponService")
public class UcouponServiceImpl extends ServiceImpl<UcouponDao, UcouponEntity> implements UcouponService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<UcouponEntity> page = this.page(
                new Query<UcouponEntity>().getPage(params),
                new QueryWrapper<UcouponEntity>()
        );

        return new PageUtils(page);
    }

}